/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.project.web.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.bind.ServletRequestUtils;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

/**
 *
 * @author coolwangbo
 */
public class TestController extends AbstractController{

    @Override
    protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception {
        this.logger.info("进入了控制器。");
        String viewName = ServletRequestUtils.getStringParameter(request, "viewName", "fregment");
        return new ModelAndView("jquery/" + viewName);
    }

}
